@import '../../../css/colorVar.less';

// :globa
.relativeSet {
  margin-bottom: 10px;
  padding-right: 18px;
  span[type='caret-down'] {
    color: #008dff !important;
  }
  :global {
    p {
      margin: 0;
      color: @text_auxiliary;
      cursor: default;

      i {
        margin-right: 10px;
        color: @text_auxiliary;
      }

      i.anticon-caret-down {
        color: @theme;
      }
    }

    ul {
      list-style-type: none;
      padding-left: 32px;
      color: @text_auxiliary;

      li {
        line-height: 30px;
        cursor: pointer;
      }

      li.selectColor {
        color: @theme;
      }

      li:hover {
        color: @theme;
      }
    }

    ul:nth-child(2) {
      margin-bottom: 0;
    }
  }
}

.relativeSet:nth-child(2) {
  margin: 0;
}
// }

:global {
  .groupModal {
    .ant-modal-body {
      overflow: auto;
    }

    :global(.has-error) {
      border-color: @form_star;
    }

    :global {
      .ant-select.ant-select-enabled,
      .current_input,
      .ant-input-number {
        position: relative;
      }

      .ant-select.ant-select-enabled::before,
      .ant-input-number::before,
      .current_input::before {
        display: inline-block;
        margin-right: 4px;
        content: '*';
        font-family: SimSun;
        font-size: 14px;
        color: @form_star;
        position: absolute;
        left: -12px;
        top: 5px;
      }

      .current_input::before {
        top: 7px;
      }
    }

    .ant-table-placeholder {
      display: none;
    }

    .ant-table-thead > tr > th,
    .ant-table-tbody > tr > td {
      border: 0;
      border-right: 0 !important;
    }

    .ant-table-tbody > tr {
      background-color: @main_body_bg;

      td {
        border: 0;
        border-right: 0 !important;
      }
    }

    .ant-tabs-nav .ant-tabs-tab {
      padding: 10px 12px 7px;
      margin: 0;
    }

    .ant-tabs-bar {
      margin-bottom: 10px;
    }

    .ant-tabs-nav .ant-tabs-tab-active {
      color: @theme;
      font-size: 14px;
    }

    .ant-tabs-ink-bar {
      background-color: @theme;
    }
  }
}

:global {
  .exportIndex {
    :global {
      .first-row {
        font-size: 16px;
        font-weight: 500;
        color: @text_main;
        height: 22px;
        line-height: 22px;
        margin-bottom: 20px;
      }

      .sec-row {
        color: @text_main;
        line-height: 20px;
        height: 20px;
        font-size: 14px;
        margin-bottom: 20px;

        a {
          margin-left: 15px;
          color: @theme;
        }
      }

      .third-row {
        color: @text_main;
        line-height: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 20px;
        display: flex;

        > div:first-child {
          margin-right: 15px;
        }

        > div:nth-child(2) {
          display: flex;
          width: 220px;
          border: 1px solid @calendar_border;
          box-sizing: border-box;
          border-radius: 2px;

          > div {
            width: 170px;
            padding-left: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          > span {
            display: block;
            text-align: center;
            flex: 1;
            background: @calendar_inner_border;
          }

          span {
            color: @text_auxiliary;
          }
        }

        .importName {
          width: 50px !important;

          > div {
            display: none;
          }
        }
      }
    }
  }
  .row_select1 {
    background: @table_row_bg !important;
  }
}

.tableForm {
  :global {
    .ant-select.ant-select-enabled,
    .ant-input-number {
      position: relative;
    }

    .ant-select.ant-select-enabled::before,
    .ant-input-number::before {
      display: inline-block;
      margin-right: 4px;
      content: '*';
      font-family: SimSun;
      font-size: 14px;
      color: @form_star;
      position: absolute;
      left: -12px;
      top: 5px;
    }
  }
}

:global {
  .header-search {
    .ant-form:nth-of-type(2) {
      padding-top: 0;
    }
  }
  .mytips {
    padding-left: 15px;
    > span {
      color: @theme;
      padding-right: 5px;
      line-height: 22px;
    }
  }
}
.barraCls {
  display: flex;
  margin-left: 10px;
  > div {
    width: 50%;
  }
  > div:first-child {
    padding-right: 10px;
  }
}

.portfolioOptimization {
  background: @main_body_bg;
  // height: 100%;

  :global {
    .ant-tabs-bar {
      margin-bottom: 10px;
    }

    .ant-tabs-tabpane {
      overflow-y: hidden;
      overflow-x: hidden;
    }

    .ant-table-thead > tr > th.ant-table-column-sort,
    .ant-table-tbody > tr > td.ant-table-column-sort {
      background: inherit;
    }

    .backBtn {
      position: fixed;
      z-index: 3;
      right: 33px;
      bottom: 40px;
    }

    .footerBtn {
      text-align: right;
      // margin: 20px 0 25px 0;

      > span {
        margin-right: 15px;
      }

      span.mainColor {
        cursor: pointer;
        color: @theme;
        border-bottom: 1px solid @theme;
      }

      span.disableColor {
        cursor: not-allowed;
        color: @text_auxiliary;
        border-bottom: 1px solid @text_auxiliary;
      }

      > div:last-child {
        margin-left: 10px;
      }
    }

    .cardBody {
      margin-bottom: 10px;
      background-color: @section_bg;

      .ant-form {
        padding-bottom: 20px;
        padding-top: 10px;
      }

      .dateForm {
        .ant-form-item {
          margin-bottom: 0;
        }
      }
    }

    .setBtn {
      text-align: right;
      margin-bottom: 10px;

      > div:first-child {
        display: inline-block;
        margin-right: 10px;
      }

      > div:last-child {
        display: inline;
      }
    }

    .addRow {
      padding: 10px 0 10px 60px;
      border-bottom: 1px solid @section_border;
      position: relative;
      // margin-bottom: 20px !important;
      height: 42px;
      // background-color: green !important;

      i {
        color: @theme;
        font-size: 16px;
        cursor: pointer;
      }

      span:nth-of-type(1) {
        display: inline-block;
        color: @text_red;
        margin-left: 10px !important;
        position: absolute;
        top: 12px;
      }
      span:nth-of-type(2) {
        margin-left: 30px !important;
      }
      span[role='img'] {
        font-size: 16px !important;
        color: rgb(0, 141, 255) !important;
        // margin-bottom: 20px !important;
        // background-color: red !important;
      }
    }

    .chartsClass {
      background: @section_bg;
      text-align: center;
    }

    .exportBtn {
      position: relative;
      margin-bottom: 8px;

      > div:last-child {
        position: absolute;
        right: 0;
        top: -8px;
      }
    }

    .config {
      .ant-table-thead > tr > th,
      .ant-table-tbody > tr > td {
        border: 0;
        border-right: 0 !important;
      }

      .ant-table-tbody > tr {
        background-color: @main_body_bg;

        td {
          border: 0;
          border-right: 0 !important;
        }
      }

      .ant-tabs-nav .ant-tabs-tab {
        padding: 10px 12px 7px;
        margin: 0;
      }

      .ant-tabs-bar {
        margin-bottom: 10px;
      }

      .ant-tabs-nav .ant-tabs-tab-active {
        color: @theme;
        font-size: 14px;
      }

      .ant-tabs-ink-bar {
        background-color: @theme;
      }
    }

    .hidden {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin: 0;
    }

    :global(.has-error) {
      border-color: @form_star;
    }
  }
}
